
from google.appengine.api import users
from layeredcontent.handler.handlers import RequestHandler
from layeredcontent.model import *

# Users

class PageHandler(RequestHandler):
  
  urls = {
    '/lc/pages/': 'list',
  }
  
  def list(self):
    query = Page.all().order('-created')
    self.render('page-list.html', {'pages': query.fetch(21), 'port': self.get_portstr()})
  